import { queryVehicleDetail } from '../../services/vehicle'

export const vehicleBehavior = Behavior({
  data: {
    vehicleInfo: {}
  },
  methods: {
    async getVehicleInfo(vehicleId){
      let vehicleRes = await queryVehicleDetail(vehicleId)
      console.log("vehicleRes>>>", vehicleRes)
      if(vehicleRes.code === 200){
        this.setData({
          vehicleInfo: vehicleRes.data
        })
      }
    },
  }
})